﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.DBUtility;
using Jxym.wlkc2011.Module.CMS.MODEL;
using Jxym.wlkc2011.Module.CMS.Public;

namespace Jxym.wlkc2011
{
    public partial class videoPlayer : System.Web.UI.Page
    {
        public string _contentHtml = "暂无信息";
        private string _contentId;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Params["content"] != null && Request.Params["siteName"] != null)
            {
                MsSqlDal<Cms_Content> cct = new MsSqlDal<Cms_Content>();
                _contentId = Request.Params["content"];
                Cms_Content info = cct.GetModel(_contentId);
                if (info != null)
                {
                    if (info.VideoFileName != "" && info.VideoFileName != "no.flv")
                    {
                        _contentHtml = cmsPublic.ViewContentByFileType(Request.Params["siteName"], info.VideoFileName, "700", "530", false);
                    }
                }
            }
        }
    }
}